package com.yourcompany;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BootstartServer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
		PollServer pollServer=applicationContext.getBean(PollServer.class);
		
		
		try {
			pollServer.start();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}//启动的端口
		
	}

}
